package cate.common.table.activity.treasure.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.treasure.row.TreasureBaseRow;

public class TreasureBaseSheet extends ESheet<TreasureBaseRow> {
    @Override
    public String getSheetName() {
        return "基础";
    }

    public TreasureBaseRow showBaseRow(int configId, int callTimes) {
        if (callTimes > 999999) {
            callTimes = 999999;
        }

        TreasureBaseRow base = null;
        for (TreasureBaseRow row : getList()) {
            if (row.configId == configId && callTimes >= row.callMin && callTimes <= row.callMax) {
                base = row;
            }
        }
        return base;
    }

}
